<template>
	<view class="">
		<rich-text :nodes="indexlist"></rich-text>
	</view>
</template>

<script>
	import {
		getByType
	} from '../../request/api.js'
	export default {
		data() {
			return {
				indexlist: '',

			};
		},

		onLoad(options) {

		},
		onShow() {
			this.getCouponPagea()
		},
		methods: {

			getCouponPagea() {
				uni.showLoading({
					title: '加载中...'
				})
				let that = this
				getByType({
					type: '2'
				}).then(res => {
					console.log(res);
					uni.hideLoading()
					that.indexlist = res.result.content
					// that.total = res.result.total; 

				})
			},

		},

	};
</script>

<style>
</style>